/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package datas;

import Beans.Interest;
import java.util.List;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

/**

 @author jtanguay
 */
public interface InterestMapper {

  final String SELECT_ALL_INTEREST = "select * from interests ";

  @Select(SELECT_ALL_INTEREST)
  @Results(value = {
    @Result(property = "idInterest", column = "idInterests"),
    @Result(property = "interestName", column = "interestName")
  })
  List<Interest> getAllInterest();
}
